#include "cgic.h"

// extern char *cgiQueryString;

int cgiMain(){

    char name[241];
    char pwd[241];
    cgiFormString("name",name,241);
    cgiFormString("password",pwd,241);

    

    cgiHeaderContentType("text/html");
    fprintf(cgiOut, "<HTML><HEAD> <meta charset=\"UTF-8\">\n");
    fprintf(cgiOut, "<TITLE>My First CGI</TITLE></HEAD>\n");
    //fprintf(cgiOut, "<BODY><H1>小测试，请求数据:%s</H1></BODY>\n",cgiQueryString);
    fprintf(cgiOut, "<BODY><H1>小测试，请求数据:%s %s</H1></BODY>\n",name,pwd);
    fprintf(cgiOut, "</HTML>\n");
}